package com.yan;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author yanheng
 * @data 2019/10/21 16:04
 */
public class Test {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(AnnotationConfig.class);
		UserDao userDao = ac.getBean(UserDao.class);
		userDao.printInfo();
		X bean = ac.getBean(X.class);
		System.out.println(bean);
	}
}

